Exercise: Get nth double character


Write a function that receives a string and returns the nth character that is duplicated.


"xyzaabb", 1   -> a
"xyzaabb", 2   -> b