Security Permutations

  • + 0 comments

    ruby how-to:

    gets
    arr = gets.split.map(&:to_i)
    puts arr.map {|el| arr[el - 1] }