Anonymous interview question

Round 1 apti round 2 coding