Solutions to coding interview questions