coding question solutions