Pregunta de entrevista de Tudip Technologies

Coding questions and to solve them without using any inbuilt function in python