AKUNA CAPITAL Interview Question

find recursively repeated digits in a list