i3RL interview question

Multiple general programming questions in quick session.