Rightmost Char easy challenge solved in python