Ossisto interview question

basic reasoning and logical questions