solved problem 004 in java

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
improved 004 algorithm in py

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
cleaned up string formatting

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
updated timings

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>