Is this homework or a job interview question? Why do you think it might have problems and what do you think they are, other than horrible formatting and meaningless variable names?