Pocket Gems Interview Question

Prepare stuff on the big O complexity .