Set 1 Big O

Very elegant solution, nice job!