import time


def test_approach(approach: str, sample_no: int, func, args: tuple) -> str:
    """ For a given Sample #sample_no evaluates an approach by running func with provided args and logs run time """
    res = f"{approach.capitalize()} Programming Approach for the Example #{sample_no}\n"
    start = time.time()+1
    soln = func(*args)
    time.sleep(1)
    res += '%d\nTotal run time %.5f\n' % (
        soln, time.time()-start)
    return res