memo = gets.chomp.split('') answer = ['y','u','k','i','c','o','d','e','r',] question = memo.index('?') puts answer[question]