Given the first and the last word and followed by a list of words , print wether the words comes before, after or inside the range of the first and the last word based on the following order ' ' < A < a < B < b.... Z < z
input :
Apple Pie
Aa
Aq
Apple
Zefa
output:
before // since Aa < Apple
inside // since Aq > Aa && Aq < Pie
inisde // since Apple = Apple
after // since Zefa > Pie