Syntax errors fixed

The function findxs is running without errors. But still not giving the
correct answer.