Synopsys interview question

Write start patterns in python, explain some Algorithm like slow & fast pointer