AMRITESHPJ's submissions for Write a function