YOHO Hong Kong interview question

name the function base on the code