Pergunta de entrevista da empresa HCLTech

2 coding Questions one is difficult and other one is easy