Amazon interview question

counting no bits from integer,parking garage problem,basic oops concepts