inputBuffer Duplicated Code refact

Duplicated Code refact
first commit

first commit fork
Long Method

Elevator class