IXL Learning interview question

function with byte array as input. determine if the last entry is a bit or byte