khanhbq: finish problem 1