def find_median(arr):
    """Hackerrank Problem: https://www.hackerrank.com/challenges/find-the-median/problem

    Return an integer that represents the median of the array.

    Args:
        arr: list of integers

    Returns:
        int: the value of the median in the array
    """
    return sorted(arr)[(len(arr)-1)//2]