Update find_3_indexes.rb

alternative solutions