Google New Grad Phone Screen

First a couple of basic data structure questions.

Given an on screen keyboard
A B C D E F G H I J
K L M N O P Q R S
T U V W X Y Z

and buttons UDLRE for up down left right enter

and we need to spell something out like BAT, give the commands: so RELEDDE

Clarifying questions: no loop around, only the given case sensitivity, don’t need to be minimum just need to work.

I didn’t do it that fast, kinda fumbled with a few bugs here and there that I figured out as I went through. Didn’t do well enough for an onsite but was invited to a second phone interview since my first one wasn’t strong enough but there were also good indicators.

Didn’t sign an NDA but still in the midst of interviewing so if y’all think I should take it down I will :slight_smile:

Oh and no second algos question probably because I was too slow. Also no DP…so maybe that’s what the next one is gonna be since this is just strings/arrays. Really the hardest bit was reconciling where you actually are with respect to the letters (i.e. bouncing back to A or something of that sort)