Tide interview question

Basic aptitude and programming language testing