Splendid interview question

Two quetsiosn asked- relatively easy and simple