This is the explanation of the question which was asked by Riddhi bhaiya in my Amazon Mock Interview 441 views08:04