Space complexity

shape