Solution to practice 'kata' problems