Embibe interview question

Mathematics related questions for validation