O(n) & O(1) space??

Printable View