Tapan Rachchhtapanrachchh.hashnode.dev·Jul 7, 20242582. Pass the PillowUsing simulation class Solution: def passThePillow(self, n: int, time: int) -> int: person = 1 mod = 1 while time > 0: time -= 1 person += mod if person == n: mod = -1 ...PythonAdd a thoughtful commentNo comments yetBe the first to start the conversation.