HKN programming challenge