KPMG interview question

Coding question and answers and basics