cb_en_u4cse22010's submissions for Write a function