Function to calculate the number of bars that are visible from the left for a particular arrangement
def noOfbarsVisibleFromLeft ( v ) : NEW_LINE INDENT last = 0 NEW_LINE ans = 0 NEW_LINE for u in v : NEW_LINE DEDENT