When I was googling ‘javascript regular expression’, the browser brought me this.

I didn’t know about Google’s foobar challenge but it seems it’s been around for a while. Well let’s see how far I can go.

I could pass the first challenge after some struggling with java which I haven’t talked for many years. I may use this cake-cutting problem for the next coding interview?