Solutions to interview questions