कुछ ऐसा (छद्म कोड):
Something like that (pseudo code):