Practicing general coding problems