find_unused_inputs function

Find unused or under-used inputs