Indeed Interview Question

Find the first repeating string in a text. Program to find the first wrongly indented line in a python script.