def METHOD_NAME(event, context):
    spoj_handle = event["queryStringParameters"]["spoj_handle"]
    problem_slug = event["queryStringParameters"]["problem_slug"]
    last_retrieved = event["queryStringParameters"]["last_retrieved"]
    submissions = get_problem_wise_submissions(spoj_handle, problem_slug, last_retrieved)
    return {
        "isBase64Encoded": False,
        "statusCode": 200,
        "body": json.dumps(submissions)
    }