code for interview test.