2KLIC interview question

Open for time management