Codewars - Typescript - Powers of 2

Published --