ChalkBooks interview question

Learn your medium level array problems