submission for clickbus developer position

Hi please check my code here is the instruction on how to test

Dependencies : PHP 5, Git, Console
Test execution

$ php -v
PHP 5.4.30 (cli) (built: Jul 29 2014 23:43:29) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

$ php main.php 30
Entry 30
Result [20,10]

$ php main.php 80
Entry 80
Result [50,20,10]

$ php main.php 125
ERROR : Invalid Argument

$ php main.php -130
ERROR : Invalid Argument

$ php main.php
Entry 
Result []