NatWest Group interview question

python interview questions based on lists and strings