Slice Last Element Of Array In Javascript Interview